package com.android.equipment.bean;

import com.blankj.utilcode.util.StringUtils;
import com.chad.library.adapter.base.entity.MultiItemEntity;

public class RealDataBean implements MultiItemEntity {
    private String node; //节点key
    private String node_des;
    private String node_value; //节点值
    private String node_unit = ""; //节点单位
    private String relation_node;//关联值  用于做另一种类型的展示
    private String relation_node_des;//关联值描述
    private String relation_node_value;
    private String relation_node_unit;

    public String getNode() {
        return node;
    }

    public void setNode(String node) {
        this.node = node;
    }

    public String getNode_des() {
        return node_des;
    }

    public void setNode_des(String node_des) {
        this.node_des = node_des;
    }

    public String getNode_value() {
        return node_value;
    }

    public void setNode_value(String node_value) {
        this.node_value = node_value;
    }

    public String getNode_unit() {
        return node_unit;
    }

    public void setNode_unit(String node_unit) {
        this.node_unit = node_unit;
    }

    public String getRelation_node() {
        return relation_node;
    }

    public void setRelation_node(String relation_node) {
        this.relation_node = relation_node;
    }

    public String getRelation_node_des() {
        return relation_node_des;
    }

    public void setRelation_node_des(String relation_node_des) {
        this.relation_node_des = relation_node_des;
    }

    public String getRelation_node_value() {
        return relation_node_value;
    }

    public void setRelation_node_value(String relation_node_value) {
        this.relation_node_value = relation_node_value;
    }

    public String getRelation_node_unit() {
        return relation_node_unit;
    }

    public void setRelation_node_unit(String relation_node_unit) {
        this.relation_node_unit = relation_node_unit;
    }

    @Override
    public int getItemType() {
        return StringUtils.isEmpty(relation_node) ? 0 : 1;
    }
}
